module.exports = function (app) {
  const { router,middleware } = app;
  const prefix = "/api/directory-article";

 
  const controller = app.controller.directoryArticle;

  router.get(prefix + "/list", controller.list);
  router.post(prefix + "/getDataByIds", controller.getDataByIds);

  router.post(prefix + "/bindOrUpdate", middleware.auth(), controller.bindOrUpdate);
  router.post(prefix + "/delete", middleware.auth(), controller.delete);

  router.post(prefix + "/setTop", middleware.auth(), controller.setTop);
  router.post(prefix + "/cancelTop", middleware.auth(), controller.cancelTop);

};



